import type { RouteRecordRaw } from 'vue-router'
import type { CategoryObj } from '../../../api/product/attr/type'

export interface UserState {
  token: string | null
  isLoding: boolean
  menuRoutes: RouteRecordRaw //内置type
  username: string
  avatar: string
}

//定义分类仓库state对象的ts类型
export interface CategoryState {
  C1Id: string | number
  C1Arr: CategoryObj[]
  C2Arr: CategoryObj[]
  C2Id: string | number
  C3Arr: CategoryObj[]
  C3Id: string | number
}
